// import axios from 'axios'
// import {get,post} from '@/utils/request'
import request from '@/utils/request'
// axios.baseURL = 'http://127.0.0.1:8080'
// axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'



export function addAddressApi(data) {
  return request({
    url: '/addressBook',
    method: 'post',
    data
  })
}
export function changeAddressApi(data) {
  return request({
    url: '/addressBook',
    method: 'put',
    data
  })
}
export function deleteAddressApi(data) {
  return request({
    url: '/addressBook',
    method: 'put',
    data
  })
}
export function getAddressApi(token) {
  return request({
    url: '/addressBook/list/'+token,
    method: 'get',
    // data:token
  })
}